﻿<UserControl xmlns:PageBar="clr-namespace:Mengsk.ProxyDelivery.App.UI.PageBar"  x:Class="Mengsk.ProxyDelivery.App.UI.Accounting.SellerMoneyUserControl"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             mc:Ignorable="d" 
             d:DesignHeight="300" d:DesignWidth="1000">
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="*"/>
            <RowDefinition Height="Auto"/>
        </Grid.RowDefinitions>
        <StackPanel Grid.Row="0" Orientation="Horizontal">
            <TextBlock Text="卖家编号:" Margin="3" VerticalAlignment="Center"/>
            <TextBox Name="tbSellerId" Margin="3" VerticalAlignment="Center" Width="100"/>
            <TextBlock Text="余额范围:" Margin="3" VerticalAlignment="Center"/>
            <TextBox Name="tbStart" Margin="3" VerticalAlignment="Center" Width="100"/>
            <TextBlock Text="到:" Margin="3" VerticalAlignment="Center" />
            <TextBox Name="tbEnd" Margin="3" VerticalAlignment="Center" Width="100"/>
            <Button Name="btnSearch" Content="查询" VerticalAlignment="Center" Margin="3" Width="60" Click="btnSearch_Click"/>
            <Button Name="btnCharge" Content="手动充值" VerticalAlignment="Center" Margin="3" Width="60" Click="btnCharge_Click"/>
       
            <TextBlock Name="tbTotalMoney" VerticalAlignment="Center" Margin="3"/>
        </StackPanel>
        
        <DataGrid Grid.Row="1" Name="dgvMoneys" AutoGenerateColumns="False" GridLinesVisibility="All" Margin="3" IsReadOnly="True" >
            <DataGrid.Columns>
                <DataGridTextColumn Header="卖家编号" Binding="{Binding SellerId}"/>
                <DataGridTextColumn Header="余额" Binding="{Binding Money,StringFormat=F2}"/>
            </DataGrid.Columns>
        </DataGrid>
        <PageBar:PageBarUserControl Grid.Row="2" x:Name="pbBar" PageSize="200" PageChanging="pbBar_PageChanging"/>
    </Grid>
</UserControl>
